<?php
require_once '../include/common.inc.php';
//require_once '../login/login_check.php';

$tablename;
if ($type == "0")
{
	$tablename = "userinfo";
}
else if($type == "1")
{
	$tablename = "softinfo";
}
else if($type == "2")
{
	$tablename = "package";
}
$query = "delete from $tablename where id='$id'";
$db->query($query);

echo"<script>alert('成功删除记录');</script>"; 
header("location:list.php?type=".$type);
?>